// AFTER-WARNING: Variable 'num' is never used

class My<T> {
    fun bar(double: (a: T & Any) -> T & Any, b: T): T & Any {
        return double(b!!)
    }
}

fun <T> foo(x: T) {
    val num = My<T>().bar({ <caret>y -> y }, x)
}
